<!DOCTYPE html>
        <head>
		<meta charset="utf-8">
		<title>健身中心</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<!--标准mui.css-->
		<link rel="stylesheet" href="../css/mui.min.css">
		<style>
			h5 {
				margin: 5px 7px;
			}
			.q1{
				width: 100%;
				margin-top: 20px;
				margin-left: 16px;
				margin-bottom: 5px;
			}
			.q2{
				width: 100%;
				height: 50px;
				text-align: center;
				font-size: 30px;
				line-height: 50px;
			}
			.mui-input-clear1{
				/* margin-left: 118px; */
			}
		</style>
	</head>
        <body>
        	<div class="mui-content">
        		<div class="q2">健身中心入会申请表</div>
        	<div class="mui-content-padded" style="margin: 5px;">
        	<form  name="myform1" class="mui-input-group" style="margin-top: 10px;">
					<div class="mui-input-row" >
						<label>是否有疾病史:</label>
					</div>
						<div class="mui-input-row mui-radio mui-left">
						<label>是</label>
						<input name="radio1" type="radio" value="1" >
					</div>
					<div class="mui-input-row mui-radio mui-left">
						<label>否</label>
						<input name="radio1" type="radio" value="0" checked>
					</div>
					</form>
					<form class="mui-input-group" style="margin-top: 10px;">
					<div class="mui-input-row" >
						<label>是否有伤痛史:</label>
					</div>
						<div class="mui-input-row mui-radio mui-left">
						<label>是</label>
						<input name="radio1" type="radio"  value="1">
					</div>
					<div class="mui-input-row mui-radio mui-left">
						<label>否</label>
						<input name="radio1" type="radio" value="0" checked>
					</div>
					</form>
					<form class="mui-input-group" style="margin-top: 10px;">
					<div class="mui-input-row" >
						<label>是否有运动史:</label>
					</div>
						<div class="mui-input-row mui-radio mui-left">
						<label>是</label>
						<input name="radio1" type="radio" value="1">
					</div>
					<div class="mui-input-row mui-radio mui-left">
						<label>否</label>
						<input name="radio1" type="radio" value="0" checked>
					</div>
				</form>

					<form class="mui-input-group" style="margin-top: 10px;">
					<div class="mui-input-row" >
						<label>健身目标:</label>
					</div>
					<div class="mui-input-row mui-checkbox mui-left">
						<label>改善体形</label>
						<input name="checkbox" value="改善体形" type="checkbox" >
					</div>
					<div class="mui-input-row mui-checkbox mui-left">
						<label>增肌</label>
						<input name="checkbox" value="增肌" type="checkbox" >
					</div>
					<div class="mui-input-row mui-checkbox mui-left">
						<label>改善体质</label>
						<input name="checkbox" value="改善体质" type="checkbox" >
					</div>
					<div class="mui-input-row mui-checkbox mui-left">
						<label>减缓工作或学习压力</label>
						<input name="checkbox" value="减缓工作或学习压力" type="checkbox" >
					</div><div class="mui-input-row mui-checkbox mui-left">
						<label>减脂</label>
						<input name="checkbox" value="减脂" type="checkbox" >
					</div>
					<div class="mui-input-row mui-checkbox mui-left">
						<label>塑形</label>
						<input name="checkbox" value="塑形" type="checkbox" >
					</div>
					<div class="mui-input-row mui-checkbox mui-left">
						<label>病体回复</label>
						<input name="checkbox" value="病体回复" type="checkbox" >
					</div>
					<div id="qita" class="mui-input-row mui-checkbox mui-left" >
						<label>其他</label>
						<input id ="qita1"name="checkbox" value="Item 8" type="checkbox" onclick='if( document.getElementById("qita1").checked==false ){
							document.getElementById("qita").style="";
						}else{
							document.getElementById("qita").style="height:80px;";
						}'>
						<input id="qitaqita" type="text" class="mui-input-clear" placeholder="请输入原因">
					</div>
				</form>
				
				<form class="mui-input-group" style="margin-top: 5px;">
				<div class="mui-button-row">
						<button type="button" class="mui-btn mui-btn-primary" onclick="note2()">下一页</button>&nbsp;&nbsp;
					</div>
				</form>
			</div>
		</div>
		<script src="../script/mui.min.js"></script>
		<script src="../script/utils.js"></script>
        </body>
        <script type="text/javascript">
	     	function note2(){
	     		 	var xingming = utils.getParam("xingming");
        	 		 var xingbie = utils.getParam("xingbie");
        	 		 var shenfenzheng = utils.getParam("shenfenzheng");
        	 		 var gongzuozheng = utils.getParam("gongzuozheng");
        	 		 var guoji = utils.getParam("guoji");
        	 		 var shengri = utils.getParam("shengri");
        	 		 var qq = utils.getParam("qq");
        	 		  var email = utils.getParam("email");
        	 		 var jvzhudizhi = utils.getParam("jvzhudizhi");
        	 		 var lianxidianhua = utils.getParam("lianxidianhua");
        	 		 var danweisuoshu = utils.getParam("danweisuoshu");
        	 		 var lianxi1 = utils.getParam("lianxi1");
        	 		 var lianxi2 = utils.getParam("lianxi2");

        	 		//  alert(xingming+xingbie+shenfenzheng+guoji);
        			 // alert(shengri+qq+jvzhudizhi);
        			 // alert(lianxidianhua+danweisuoshu+lianxi1+lianxi2);

	     		var yuanyin="";

	     		var obj = document.getElementsByTagName("input");
				for(var i=6; i<obj.length; i ++){

				        if(obj[i].checked){
				           if(i==13){
				           		//alert(777777);
				           		yuanyin+=document.getElementById("qitaqita").value+".";
				           }else{
				           	 //alert(obj[i].value);
				           	 yuanyin+=obj[i].value+".";
				           }
				        
				    }
				}


				var radio_1 ;
				var radio_2 ;
				var radio_3 ;

				if(obj[0].checked) radio_1=obj[0].value;
				if(obj[1].checked) radio_1=obj[1].value;
				if(obj[2].checked) radio_2=obj[2].value;
				if(obj[3].checked) radio_2=obj[3].value;
				if(obj[4].checked) radio_3=obj[4].value;
				if(obj[5].checked) radio_3=obj[5].value;
				

				//alert(radio_1 +"  "+radio_2+"  "+radio_3+"  "+yuanyin);
				if(yuanyin==""){
					mui.alert('存在未填写的选项，请填写所有信息', '提醒');
				}else{
					window.open("note3.html?xingming="+xingming+"&xingbie="+xingbie+"&shenfenzheng="+shenfenzheng+"&xingbie="+xingbie+"&guoji="+guoji+"&qq="+qq+"&jvzhudizhi="+jvzhudizhi+"&lianxidianhua="+lianxidianhua+"&danweisuoshu="+danweisuoshu+"&lianxi1="+lianxi1+"&lianxi2="+lianxi2+"&shengri="+shengri+"&radio_1="+radio_1+"&radio_2="+radio_2+"&radio_3="+radio_3+"&yuanyin="+yuanyin+"&gongzuozheng="+gongzuozheng+"&email="+email);
				}
	     	}

        </script>
    </html>